﻿<UserControl x:Class="AzureDiagMon.Views.EntityEditors.StorageAccountEditor"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:EntityEditors="clr-namespace:AzureDiagMon.ViewModels.EntityEditors;assembly=AzureDiagMon.ViewModels"
             mc:Ignorable="d"              
             d:DataContext="{d:DesignInstance Type=EntityEditors:StorageAccountEditorViewModel, IsDesignTimeCreatable=True}"
             d:DesignHeight="112" d:DesignWidth="357">
    <Grid Margin="3">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Label Grid.ColumnSpan="2">Enter the details of the storage account.</Label>

        <Label Grid.Row="1" Grid.Column="0">Account Name:</Label>
        <TextBox Grid.Row="1" Grid.Column="1" Margin="2" 
                 Text="{Binding EntityViewModel.AccountName, UpdateSourceTrigger=PropertyChanged}" />

        <Label Grid.Row="2" Grid.Column="0">Account Key:</Label>
        <TextBox Grid.Row="2" Grid.Column="1" Margin="2,2,2,-24" 
                 Text="{Binding EntityViewModel.AccessKey, UpdateSourceTrigger=PropertyChanged}" TextWrapping="Wrap" Height="48" />

    </Grid>
</UserControl>
